Skip to content

fix(knowledge): reject nested theme doc candidates - #5808

Closed
cixzhang wants to merge 1 commit into
mainfrom
fix/nested-theme-doc-candidates
Closed

fix(knowledge): reject nested theme doc candidates#5808
cixzhang wants to merge 1 commit into
mainfrom
fix/nested-theme-doc-candidates

Conversation

@cixzhang

@cixzhang cixzhang commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reject every Markdown candidate under docs/themes except the regular root README.md
  • keep recursive discovery bounded and avoid following symlink directories, roots, or file targets
  • classify nested theme-doc candidates as unsafe knowledge and cover the checker, change scope, and owner gate

Focused follow-up to #5792.

Test plan

  • pnpm exec vitest run --project node scripts/check-knowledge.test.mjs .github/scripts/change-scope.test.mjs .github/scripts/spec-owner-reconcile.test.mjs .github/scripts/spec-owner-workflow.test.mjs
  • pnpm check:knowledge --base origin/main
  • pnpm check:repo

No Changeset: this changes repository validation only.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 1, 2026
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Sep 2, 2026 4:43am UTC

Request Review

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox were not published for this CI run.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | View full report

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this closes the false-green path for misplaced nested theme records. This is an approve once you undraft.

[Reviewed by Robohands]

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I rechecked the rebased head. Only unrelated guidance changed around it, so the false-green fix remains an approve once you undraft.

[Reviewed by Robohands]

github-actions Bot added a commit that referenced this pull request Sep 2, 2026

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I rechecked the second mechanical rebase. Main contributed only unrelated AppShell test coverage, so the false-green fix remains an approve once you undraft.

[Reviewed by Robohands]

@cixzhang

cixzhang commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Closing at the author's request.

@cixzhang cixzhang closed this Sep 4, 2026
@github-actions
github-actions Bot deleted the fix/nested-theme-doc-candidates branch September 5, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant